package com.estun.backroundManagementService.modules.productProcess.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 生产工序表
 * </p>
 *
 * @author machine
 * @since 2023-02-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("product_process")
@ApiModel(value = "ProductProcess对象", description = "生产工序表")
public class ProductProcess implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "工序名称")
    private String name;

    @ApiModelProperty(value = "工序CODE")
    private String operationCode;

    @ApiModelProperty(value = "工序排序值")
    private Integer sort;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "所属工艺ID")
    private Long productCraftId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "绑定工位ID")
    private Long positionId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "产线ID")
    private Long productLineId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "工站ID")
    private String stationId;

    @ApiModelProperty(value = "操作指导")
    private String explainPicture;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
